home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 2000 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: August 10/2000
- // Author: jdc rendering
- //
-
- //////////////////////////////////////////////////////////////////////
- //
- // Procedure Name:
- // connectNodeToNodeOverride
- //
- // Description:
- // This procedure is provided as a hook for customers to allow
- // you to redefine the behaviour of drag and drop.
- //
- // Input Arguments:
- // $srcNode - the name of the source node (the dragged node)
- // $dstNode - the name of the destination node (the dropped-on node)
- //
- // Return Value:
- // Return 1 if you want Maya continue and perform the operation
- // that would normally result from this connection.
- // Return 0 if you have chosen to implement a different behaviour
- // for this connection and don't want the normal operation to
- // be performed as well.
- //
- global proc int connectNodeToNodeOverride(
- string $srcNode,
- string $dstNode)
- {
- // print(
- // "connectNodeToNodeOverride("
- // + $srcNode
- // + ", "
- // + $dstNode
- // + ") called\n");
-
- // By default the return value of this procedure is 1, so that Maya
- // will perform the normal operation for a connection between these
- // two nodes.
- //
- int $rDoNormalOperation = 1;
-
- //
- // If you wish to change the behaviour of drag and drop of a node onto
- // another node in Maya, you should implement the behaviour you wish
- // here.
- //
- // Typically this procedure would get called when a node is dragged onto a
- // node in the multilister, hypershade or hypergraph (when not in DAG
- // view).
- //
-
- return $rDoNormalOperation;
- }
-